/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.global.dao;

import java.util.List;
import javax.ejb.Stateless;
import tv.global.modelo.MenuPrincipal;

/**
 *
 * @author Claudio
 */
@Stateless
public class MenuPrincipalDAO extends BaseDAO {

    public void guardar(MenuPrincipal mp)throws Exception{
        getEntityManager().persist(mp);
    }

    public void editar(MenuPrincipal mp)throws Exception{
        getEntityManager().merge(mp);
    }
    public List<MenuPrincipal> getLista(){
        return getLista(MenuPrincipal.class, true, -1, -1);
    }

   
    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
